package com.fsnbigdata.service.api;

import com.fsnbigdata.domain.Kopp;
import com.fsnbigdata.domain.ZhKopp;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;


public interface ZhKoppService {

    Kopp findById(Long id);

    List<ZhKopp> findAll();

    public abstract Kopp save(Kopp entity,String name);

    ZhKopp update(ZhKopp zhKopp);     //修改

    Integer deleteOne(Long id);        //删除一个

    Integer deleteMany(String ids);   //删除多个

    Page<ZhKopp> findByPageAndSize(String name, String creator,Pageable pageable);//分页查询
    
    public abstract void delete(Iterable<Long> ids);

    List<ZhKopp> queryByAlphabet(String initial);

    Object getTaxonomy(String kingdom, String phylumn, String t_class, String t_order);

    List getTree(String kingdom, String phylumn, String t_class, String t_order);

    Kopp getData(String kingdom, String phylumn, String t_class, String t_order,String z_name);
}
